/**
 * TODO
 */
package com.bci.pwtz.service;

import com.bci.pwtz.common.util.PaginationList;
import com.bci.pwtz.exception.CanNotDeleteException;
import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.Dykgg;

/**
 * TODO
 * 
 * @author ICLNetwork Team
 * @version 3.0
 */
public interface DykggService {
    /**
     * 新增Dykgg
     * TODO
     * @param dykgg
     * @return
     * @throws PwtzDatabaseException
     */
     Dykgg add(Dykgg dykgg) throws PwtzDatabaseException;
    /**
     * 删除（根据dykggId删除）
     * TODO
     * @param dykggId
     * @return
     * @throws PwtzDatabaseException
     */
     int delete(String dykggId)throws PwtzDatabaseException , CanNotDeleteException;
    /**
     * 修改Dykgg
     * TODO
     * @param dykgg
     * @return
     * @throws PwtzDatabaseException
     */
     int update(Dykgg dykgg) throws PwtzDatabaseException;
    /**
     * 查找Dykgg对象（根据dykggId查找）
     * TODO
     * @param dykggId
     * @return
     * @throws PwtzDatabaseException
     */
     Dykgg load(String dykggId) throws PwtzDatabaseException;
    /**
     * 根据时间查询Dykgg
     * TODO
     * @param devicename
     * @param companyid
     * @param portalType
     * @param beginTime
     * @param endTime
     * @param pageSize
     * @param pageNo
     * @return
     * @throws PwtzDatabaseException
     */
     
     PaginationList<Dykgg> findDykgg(String devicename,Long companyid,int portalType,String[] medLineCodes,int stationDeviceType,String stationCode,String beginTime,String endTime,int pageSize, int pageNo)throws PwtzDatabaseException;
    
     PaginationList<Dykgg> selectDykggByDyzf(String stationCode,String deviceName,Long companyId,int pageSize, int pageNo) throws PwtzDatabaseException;
}
